#pragma once

#include <event2/event.h>
//#ifdef _WIN32
//#include <WS2tcpip.h>
//#include <WinSock2.h>
//#else
//#include <unistd.h>
//#include <arpa/inet.h>
//#endif // WIN32

using socket_t = evutil_socket_t;

#if _WIN32
//	using socket_t = SOCKET;
	using SockLen = int;
#else
//	using socket_t = int;
	using SockLen = socklen_t;
#endif

namespace SockOpt {
	int shutdown(socket_t sockfd);

	int close(socket_t sockfd);
}